home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
LOTTORTS
/
LOTTHUN.LZH
/
INSTALL.BAT
next >
Wrap
DOS Batch File
|
1992-11-03
|
4KB
|
146 lines
echo off
cls
:HelpCheck
if "%1"=="" goto help
:FloppyCheck
if "%1" == "A:" goto FloppyError
if "%1" == "a:" goto FloppyError
if "%1" == "B:" goto FloppyError
if "%1" == "b:" goto FloppyError
:ShowDrive
set direct=%2
if "%2"=="" set direct=\LOTTOT
cd %1%direct%
cls
echo
echo LOTTO THUNDER INSTALLATION
echo
if exist %1thunder.exe goto Exists
echo The selected path for Lotto Thunder is:
echo
echo %1%direct%
echo
echo You may see an "Unable to create directory" message if the
echo directory is already present on your hard drive. This is only a
echo warning; the installation will continue successfully.
echo
echo Press any key to continue the installation or a ^C (the CONTROL
echo and C keys at the same time) to abort the installation.
pause > nul:
echo
:Install
md %1%direct%
echo Please wait, copying files ...
lottot /e%1%direct%
if errorlevel 1 goto CopyError
cd %1%direct%
%1
set direct=
%1
set direct=
echo
echo Lotto Thunder has been installed. Type THUNDER at the
echo DOS prompt to start the program.
goto Exit
:help
echo To install Lotto Thunder on your hard drive type A:
echo or B: to select the floppy drive containing the Lotto Thunder
echo distribution disk. Press a carriage return to select this
echo drive. Then type INSTALL followed by the hard drive identifier
echo to receive the program. For example:
echo
echo A:
echo INSTALL C:
echo
echo The default directory will be LOTTOT. If you would like to change
echo the default directory, you may enter the new directory after your
echo drive identifier. For example:
echo
echo INSTALL C: \PRO
echo
echo The SPACE MUST BE PRESENT BETWEEN THE DRIVE AND DIRECTORY or the
echo install will not complete successfully.
echo
echo The installation can be aborted at any time by pressing a ^C (the
echo CONTROL and C keys at the same time).
goto Exit
:FloppyError
echo Lotto Thunder can only be installed on a hard drive.
echo The drive letter must be a hard drive identifier.
echo Please try again using the letter for your hard drive.
goto Exit
:Exists
echo
echo *** WARNING ***
echo
echo A previous copy of Lotto Thunder exists on
echo your hard drive in %1%direct%.
echo
echo ALL DATABASE FILES WILL BE PRESERVED
echo
echo You will see an "Unable to create directory" message. This is
echo only a warning; the installation will continue successfully.
echo
echo Press any key to continue the installation or a ^C (the CONTROL
echo and C keys at the same time) to abort the installation.
pause > nul:
echo
echo One Moment...........Checking HARD-DISK.................
if exist %1thunder.doc del %1thunder.doc
if exist %1register.doc del %1register.doc
if exist %1ombudsmn.asp del %1ombudsmn.asp
if exist %1packing.lst del %1packing.lst
if exist %1vendor.doc del %1vendor.doc
if exist %1sysop.doc del %1sysop.doc
if exist %1describe.doc del %1describe.doc
if exist %1warranty.doc del %1warranty.doc
if exist %1license.doc del %1license.doc
if exist %1sitelice.doc del %1sitelice.doc
if exist %1trun.bat del %1trun.bat
if exist %1thunder.exe del %1thunder.exe
if exist %1thunder.sys del %1thunder.sys
if exist %1read.me del %1read.me
if exist %1thund1.ovl del %1thund1.ovl
if exist %1thund2.ovl del %1thund2.ovl
if exist %1thund3.ovl del %1thund3.ovl
if exist %1thund4.ovl del %1thund4.ovl
goto Install
:CopyError
echo
echo An error occurred creating the specified directory, or copying one
echo of the Lotto Thunder files to your hard disk. At
echo least 1.3 megabytes of disk space must be available to install
echo Lotto Thunder. CHKDSK can be used to verify that sufficient
echo space is available.
echo If you cannot get the install batch file to work. You can copy the
echo file LOTTOT.EXE to your harddisk. Then type LOTTOT at the DOS
echo prompt to start the self-extracting process.
:Exit
echo
echo